package cn.jsj.hzu.qm.facecloud.ciuser.pojo;

import java.util.Objects;

public class Cilab {
	private int id;
	private String name;
	private String location;
	private String memo;
	private int available;
	
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public int getAvailable() {
		return available;
	}
	public void setAvailable(int available) {
		this.available = available;
	}
	@Override
	public int hashCode() {
		return Objects.hash(available, id, location, memo, name);
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Cilab other = (Cilab) obj;
		return available == other.available && id == other.id && Objects.equals(location, other.location)
				&& Objects.equals(memo, other.memo) && Objects.equals(name, other.name);
	}
	@Override
	public String toString() {
		return "Cilab [id=" + id + ", name=" + name + ", location=" + location + ", memo=" + memo + ", available="
				+ available + "]";
	}
	
	public String toJsonString() {
		return "{id:'" + id + "', name:'" + name + "', location:'" + location + "', memo:'" + memo + "', available:'"
				+ available + "'}";
	}
	
	
	public Cilab(int id, String name, String location, String memo, int available) {
		super();
		this.id = id;
		this.name = name;
		this.location = location;
		this.memo = memo;
		this.available = available;
	}
	public Cilab() {
		super();
	}
}
